home *** CD-ROM | disk | FTP | other *** search
/ Aminet 6 / Aminet 6 - June 1995.iso / Aminet / text / hyper / ADtoHT2_0.lha / Autodocs.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-02-28  |  2.3 KB  |  80 lines

  1. #ifndef AUTODOCS_H
  2. #define AUTODOCS_H
  3.  
  4. #ifndef MAIN_H
  5. #include "main.h"
  6. #endif
  7.  
  8. #ifndef FILE_H
  9. #include "File.h"
  10. #endif
  11.  
  12. /************************************************************************/
  13.  
  14. struct AutodocFileNode
  15.   {
  16.     struct AnyNode AnyNode;    /* name is filename ("exec.doc") */
  17.     char *LinkName;
  18.     struct AutodocModuleNode *Modules;    /* linked list of modules in file */
  19.   };
  20.  
  21. extern struct AVLTree AutodocFileTree;
  22.  
  23. /************************************************************************/
  24.  
  25. struct AutodocModuleNode
  26.   {
  27.     struct AnyNode AnyNode;    /* name is the module name ("exec.library") */
  28.     struct AutodocFileNode *AutodocFileNode;
  29.     struct AVLTree Nodes;    /* tree of AutodocNodeNodes */
  30.     struct AutodocInfoNode *InfoNodes;    /* linked list of --information-- nodes */
  31.     struct AutodocModuleNode *Next;    /* linked list of modules in file */
  32.   };
  33.  
  34. extern struct AVLTree AutodocModuleTree;
  35.  
  36. /************************************************************************/
  37.  
  38. struct AutodocNodeNode
  39.   {
  40.     struct AnyNode AnyNode;    /* name is unqualified node name ("AllocMem") */
  41.     struct AutodocModuleNode *AutodocModuleNode;
  42.     struct AutodocNode *AutodocNode;
  43.     struct AutodocNodeNode *Next;
  44.     struct AutodocNodeNode *RealNode;    /* points to the real node (if this is a varargs stub) */
  45.     /* points to itself if this is a real node */
  46.     int Found;            /* really found a node */
  47.   };
  48.  
  49. /************************************************************************/
  50.  
  51. struct AutodocInfoNode
  52.   {
  53.     struct AutodocInfoNode *Next;    /* linked list of --information-- nodes */
  54.     char *Name;            /* name ("background") */
  55.     int Found;            /* really found a node */
  56.   };
  57.  
  58. /************************************************************************/
  59.  
  60. struct AutodocNode
  61.   {
  62.     struct AnyNode AnyNode;
  63.     struct AutodocNodeNode *Entries;
  64.     int Function;        /* TRUE=function, FALSE=define */
  65.   };
  66.  
  67. extern struct AVLTree AutodocNodeTree;
  68.  
  69. /************************************************************************/
  70.  
  71. void ConvertNodeText (int, void *);
  72. int DoAutodoc (struct Word *, struct AutodocNodeNode *);
  73.  
  74. void ProcessAutodocFile1 (char *);
  75. void ProcessAutodocFile2 (struct AutodocFileNode *);
  76.  
  77. /************************************************************************/
  78.  
  79. #endif /* AUTODOCS_H */
  80.